Borrador BezCurva |
Ubicación en el Menú |
---|
Borrador → Herramientas Bézier → Curva Bézier |
Entornos de trabajo |
Borrador, Architectura |
Atajo de teclado por defecto |
Ninguno |
Introducido en versión |
0.14 |
Ver también |
Borrador CubicBezCurva, Borrador BSpline |
El Borrador BezCurva comando crea una Curva de Bézier a partir de varios puntos.
El comando crea una única curva de Bézier con una DatosDegree que es number_of_points - 1
. Se puede transformar en una curva Bézier a trozos reduciendo esta propiedad.
Los comandos Borrador CubicBezCurva utilizan puntos de control para definir la posición y la curvatura de la spline. El comando Borrador BSpline, en cambio, especifica los puntos exactos por los que pasará la curva
Curva de Bézier definida por múltiples puntos
Ver también: Bandeja Borrador, Borrador Atrapar y Borrador Restricción.
Los atajos de teclado de un solo carácter disponibles en el panel de tareas se pueden cambiar. Ver Preferencias de Borrador. Los atajos mencionados aquí son los atajos por defecto.
true
y tendrá una cara rellena, siempre y cuando esté cerrada y no se auto-intersecte. Tenga en cuenta que una curva que se auto-interseca con una cara no se mostrará correctamente, para tal curva DatosHacer Cara debe ser ajustado a false
.
Ver también: Editor de propiedades.
Un objeto Draft BezCurva deriva de un Pieza2DObjeto y hereda todas sus propiedades. También tiene las siguientes propiedades adicionales:
Borrador
Area
): (read-only) specifies the area of the face of the curve. The value will be 0.0
if DatosMake Face if false
or the face cannot be created.Bool
): specifies if the curve is closed or not. If the curve is initially open this value is false
, setting it to true
will draw a segment to close the curve. If the curve is initially closed this value is true
, setting it to false
will remove the last segment and make the curve open.IntegerList
): (read-only) specifies the continuity of the curve.Integer
): specifies the degree of the curve.Length
): (read-only) specifies the total length of the curve.Bool
): specifies if the curve makes a face or not. If it is true
a face is created, otherwise only the perimeter is considered part of the object. This property only works if DatosClosed is true
and if the curve does not self-intersect.VectorList
): specifies the control points of the curve in its local coordinate system.
Borrador
Length
): specifies the size of the symbol displayed at the end of the curve.Enumeration
): specifies the type of symbol displayed at the end of the curve, which can be Dot
, Circle
, Arrow
, Tick
or Tick-2
.Bool
): specifies whether to show a symbol at the end of the curve, so it can be used as an annotation line.Enumeration
): specifies the Draft Pattern with which to fill the face of the closed curve. This property only works if DatosMake Face is true
and if VistaDisplay Mode is Flat Lines
.Float
): specifies the size of the Draft Pattern.
Ver también: Documentación de la API autogenerada y Fundamentos de FreeCAD Guión.
Para crear una Borrador Línea utilice el método make_bezcurve
(introducido en la versión 0.19) del módulo Borrador. Este método sustituye al método obsoleto makeBezCurve
.
bezcurve = make_bezcurve(pointslist, closed=False, placement=None, face=None, support=None, degree=None)
bezcurve = make_bezcurve(Part.Wire, closed=False, placement=None, face=None, support=None, degree=None)
bezcurve
con la lista de puntos dada, pointslist
.
FreeCAD.Vector
, con unidades en milímetros.Part.Wire
, del que se extraen los puntos.closed
es True
, o si el primer y el último punto son idénticos, la curva está cerrada.placement
es None
la curva se crea en el origen.face
es True
, y la curva es cerrada, la curva formará una cara, es decir, aparecerá rellena.Ejemplo:
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1000, 1000, 0)
p3 = App.Vector(2000, 0, 0)
p4 = App.Vector(1500, -2000, 0)
bezcurve1 = Draft.make_bezcurve([p1, p2, p3, p4], closed=True)
bezcurve2 = Draft.make_bezcurve([p4, 1.3*p2, p1, 4.1*p3], closed=True)
bezcurve3 = Draft.make_bezcurve([1.7*p3, 1.5*p4, 2.1*p2, p1], closed=True)
doc.recompute()